<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
    <th:block th:include="include :: header('物流梯度数据新增')" />
<style>
.layui-form {padding: 16px 84px 16px 25px;}
.layui-form-label{width:122px;padding-left:0}
.layui-input-block{margin-left:140px;}
.layui-form-radio{padding-right:0}
.getMore {top: 13px !important;right: 8px !important;line-height: initial;position: absolute;margin-top: -4px;}
</style>
</head>
<body class="no-skin">
<div class="main-container">
    <form class="layui-form" action="">
        <input type="hidden" th:each="fieldhide : ${fieldsHiddenList}" th:name="${fieldhide?.fields}" th:id="${fieldhide?.fields}" th:value="${fieldhide?.fieldContent}">
        <div class="layui-form-item" th:each="field : ${fieldsList}">
            <label class="layui-form-label"><font class="f_red" th:if="${#bools.isTrue(field?.fieldFrontRequired)}">*</font>[[${field.fieldName}]]：</label>
            <div class="layui-input-block">
                <input th:if="${field.fieldFrontType} eq 't_text'" type="text" th:name="${field?.fields}" th:id="${field?.fields}" th:value="${field?.fieldContent}" autocomplete="off" th:onblur="${field?.fieldFrontRequired==true}? 'inputOnBlur(this)' : ''" th:readonly="${field?.fieldFrontEdit==false or (field?.fields=='vid' and field?.fieldContent != '')}? 'true' : 'false'" class="layui-input">
                <input th:if="${field.fieldFrontType} eq 't_decimal'" type="number" lay-verify="number" th:name="${field?.fields}" th:id="${field?.fields}" th:value="${field?.fieldContent}" autocomplete="off" th:onblur="${field?.fieldFrontRequired==true}? 'inputOnBlur(this)' : ''" th:readonly="${field?.fieldFrontEdit==false}? 'true' : 'false'" class="layui-input">
                <input th:if="${field.fieldFrontType} eq 't_date'" type="text" th:name="${field?.fields}" th:id="${field?.fields}" th:value="${field?.fieldContent}" autocomplete="off" readonly class="layui-input t_date">
	    		<input th:if="${field.fields} eq 'bdeletedtext'" type="checkbox" th:checked="${field?.fieldContent == '是'}" id="bdeletedtext" 
	    		lay-skin="switch" lay-filter="change" lay-text="是|否">
	    		<input th:if="${field.fields} eq 'bdefaulttext'" type="checkbox" th:checked="${field?.fieldContent == '是'}" id="bdefaulttext" 
	    		lay-skin="switch" lay-filter="change" lay-text="是|否">
	    		<input th:if="${field.fieldFrontType} eq 't_buttontext'" type="text" class="layui-input buttontext" th:name="${field?.fields}" th:id="${field?.fields}" th:value="${field?.fieldContent}" readonly/>
				<i th:if="${field.fieldFrontType} eq 't_buttontext'" class="layui-icon layui-icon-more getMore" th:onclick="getMoreBase([[${field?.fieldFrontValue}]]);" th:getType="${field?.fields}"></i>
				<textarea th:if="${field.fieldFrontType} eq 't_textarea'" th:name="${field?.fields}" th:id="${field?.fields}" th:value="${field?.fieldContent}" class="layui-textarea">[[${field.fieldContent}]]</textarea>
				<select th:if="${field.fieldFrontType} eq 't_dropdown'" type="text" th:id="${field?.fields}" th:name="${field?.fields}" autocomplete="off" class="layui-select" lay-search th:with="map=${@baseinfosimple.getDropdownData(field.fieldSearchType,field.fieldFrontSave,field.fieldFrontShow)}">
					<option></option>
					<option th:each="dict : ${map}" th:text="${dict.vname}" th:value="${dict.vid}" th:selected="(${#strings.isEmpty(field.fieldContent)} and ${dict.bdefaulttext eq '是'}) or ${dict.vid.toString() eq field.fieldContent.toString()} or ${dict.vname.toString() eq field.fieldContent.toString()}" th:data-vremark="${dict.vremark}"></option>
				</select>
            </div>
        </div>
    </form>
</div>
<th:block th:include="include :: footer" />
<script th:inline="javascript">
    /*<![CDATA[*/
    // var ajaxResult = [[${ajaxResult}]];
    /*]]>*/
</script>
 <script type="text/javascript">
    layui.use(['table','form','layer','jquery'], function () {
        var $ = layui.$,layer = layui.layer,form = layui.form,table = layui.table;
        // if(ajaxResult.code==500) {
        //     $.modal.alert(ajaxResult.msg, modal_status.FAIL);
        // };
	});
 </script>
</body>
</html>